#!/bin/bash

COMMAND=$1
KERNEL_VERSION=$2

case "$COMMAND" in
    add)
        dkms kernel_postinst --kernelver "$KERNEL_VERSION"
        ;;
    remove)
        dkms kernel_prerm --kernelver "$KERNEL_VERSION"
        ;;
esac

exit 0
